﻿using SanlieHash;
using SanlieHash.SecureHash;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace net_path.Tools.Password
{
    public class PasswordFactory
    {
        public static string Make(string password, string code, string version)
        {
            var outpass = string.Empty;

            switch (version)
            {
                case "A1":
                case "B1":
                    return code + FastHash.GetSha3_512(password + code) + FastHash.GetMD5(code + password) + version;
            }
            return outpass;
        }

    }
}
